#include "lib.h"
#include <stdio.h>

#define BUFSIZE  10

int main()
{
    int ia[BUFSIZE] = {1,34,26,15,36,49,35,24,64,28};

    int i,j;

    printf("showing...\n");
    show(ia,BUFSIZE);

    for (i = 0;i < BUFSIZE;i++){
        for(j = i + 1;j < BUFSIZE;j++){
            if (greater_than(ia[i],ia[j])){
                swap(&ia[i],&ia[j]);
            }
        }
    }

    printf("Afeter sorting,and showing...\n");
    show(ia,BUFSIZE);

    return 0;
}

